/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Model;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author hicham
 * http://jena.apache.org/documentation/ontology/index.html
 * http://stackoverflow.com/questions/5449495/parsing-owl-file
 * http://jena.apache.org/documentation/ontology/
 * http://www.yoyodesign.org/doc/w3c/owl-guide-20040210/
 */
public class Ontology {
    public static int idLastCreated = 0;
    
    private int id;
    private String name;
    private String description;
    private String link; // URL or path on local disk
    private List<Concept> concepts = new ArrayList<Concept>();

    public Ontology() {
        super();
        this.id = Commun.IncrementId(idLastCreated,1);
    }

    public Ontology(String name){
        this();
        this.name = name;
    }
    
    public Ontology(String name, String description, String link) {
        this();
        this.name = name;
        this.description = description;
        this.link = link;
    }

    public List<Concept> getConcepts() {
        return concepts;
    }

    public void setConcepts(List<Concept> concepts) {
        this.concepts = concepts;
    }
    
    public void addConcept(Concept concept) {
        concepts.add(concept);
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public int getId() {
        return id;
    }
    
    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    
    
}
